Skip to main content

Environment Variables Configuration Parameters

Configuration parameters can be set from environment variables as follows:

  1. General configuration parameters, such as database and system port.
  2. Connector parameters (for v3.x and above).
  3. Notification parameters (for v3.x and above).

General Configuration Parameters

NameValue/SourceDescription
SETTINGS__TENANTSyncNowAppTenant name
SETTINGS__DATABASECONFIGURATION__DATABASETYPEPostgreSQL or SQLLite or SQLServerDatabase type
SETTINGS__DATABASECONFIGURATION__SERVERDatabase-Server-NameDatabase server address
SETTINGS__DATABASECONFIGURATION__PORT5432Database port
SETTINGS__DATABASECONFIGURATION__USERNAMESyncNowDatabaseUserDatabase username
SETTINGS__DATABASECONFIGURATION__PASSWORDSecret: syncnow-db-password/passwordDatabase password
SETTINGS__DATABASECONFIGURATION__TRANSPORTENCRYPTFalseTransport encryption
SETTINGS__DATABASECONFIGURATION__DATABASESyncNowDatabase name
SETTINGS__CACHESTORECONFIGURATION__SERVERredis-serverRedis server address
SETTINGS__CACHESTORECONFIGURATION__TIMEOUT60Redis timeout
SETTINGS__CACHESTORECONFIGURATION__PORT6379Redis port
SETTINGS__CACHESTORECONFIGURATION__USERNAME(empty)Redis username
SETTINGS__CACHESTORECONFIGURATION__PASSWORDSecret: syncnow-db-password/passwordRedis password
SETTINGS__VECTORDATABASECONFIGURATION__DATABASETYPERedisVector DB type
SETTINGS__VECTORDATABASECONFIGURATION__TIMEOUT60Vector DB timeout
SETTINGS__VECTORDATABASECONFIGURATION__URLredis-stack-server:6379Vector DB URL
SETTINGS__VECTORDATABASECONFIGURATION__USERNAME(empty)Vector DB username
SETTINGS__VECTORDATABASECONFIGURATION__PASSWORDSecret: syncnow-db-password/passwordVector DB password
SETTINGS__AISETTINGS__ISAIACTIVEtrueAI features enabled
SETTINGS__AISETTINGS__CHATCOMPLETIONAIPROVIDERAzureOpenAIAI provider
SETTINGS__AISETTINGS__CHATCOMPLETIONMODELNAMEgpt-4o-miniAI model name
SETTINGS__AISETTINGS__EMBEDDINGDEPLOYMENTNAMEtext-embedding-ada-002Embedding deployment name
SETTINGS__AISETTINGS__APIKEYSecret: ai-settings-secret/apikeyAI API key
SETTINGS__AISETTINGS__PROVIDERURLhttps://ai-endpoint.cognitiveservices.azure.com/AI provider URL
ASPNETCORE_URLShttp://*:5030ASP.NET Core URLs, endpoint for the http endpoint

Connector Configuration

Connectors configuration can be injected from an environment variable. Environment variables configuration takes precedence over user interface configuration.

These configuration parameters can also be set from environment variable.

Connector Configuration

To make SyncNow reading the credentials from environment variables – create them before running the app.

One system connector or notification provider can have few secret values, such as APIKey, APISecret, AccessToken, AccessTokenSecret, Password

The name of an environment variable should contain info of system connector’s name (or notification provider’s name) and its secret property name.

_SYNCNOWSECRET_<Name>_SYNCNOWSECRET_<Property>=<secret_value>.

Example 1

For example, for an access token to a system Azure DevOps, an environment variable will be:

Example 1

Example 2

For one system connector with multiple secret values, you can set all or only some of them into environment variables. Values that were not provided in environment variables will be taken from the database.

Example 2

Notification Providers Configuration

A password for a notification provider in the environment variable will be: _SYNCNOWSECRET_EmailNotifier_SYNCNOWSECRET_Password=MyEmailPass123

System Connector's Name with Special Characters

A name of an environment variable should not contain any characters besides latin letters, numbers and underscore. Use underscore in the environment variable name instead of any non-supported symbols.

configExampleSpecialChars

Connector Name with Special Characters